package com.teradata.olingo.processor.core.serializer;

import com.teradata.olingo.processor.core.exception.ODataGenericSerializerException;
import org.apache.olingo.commons.api.data.EntityCollection;
import org.apache.olingo.commons.api.format.ContentType;
import org.apache.olingo.server.api.ODataRequest;
import org.apache.olingo.server.api.serializer.SerializerException;
import org.apache.olingo.server.api.serializer.SerializerResult;

public interface GenericSerializer {

  public SerializerResult serialize(final ODataRequest request, final EntityCollection result)
      throws SerializerException, ODataGenericSerializerException;

  public ContentType getContentType();
}
